#ifndef TRACK_H
#define TRACK_H

#include <QObject>
#include <QPixmap>

QT_BEGIN_NAMESPACE
class QString;
QT_END_NAMESPACE

class Track : public QObject
{
    Q_OBJECT

public:
    Track();

    void setPath(const QString & trackPath);
    QString getPath();
    QString getTitle();
    QString getArtist();
    QString getAlbum();
    int getYear();
    QPixmap getCover();
    int getLength();

signals:
     void trackChanged(Track *track);

private:
    QString path;
    QString dir;

    QString title;
    QString artist;
    QString album;
    int year;

    QPixmap cover;

    int length;
};

#endif // TRACK_H
